ReactiveView class¶
Attributes: [DebuggerDisplay("ReactiveView: {Items}")]
Defined in
Namespace: ReactiveList.Reactive.Views Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Views.ReactiveView<T> Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Represents a filtered, observable view over a collection that updates in response to changes from an
observable data stream.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class ReactiveView~T~
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. ReactiveView~T~
class IReactiveView~ReactiveView~T~, T~ {
<>
}
IReactiveView~ReactiveView~T~, T~ <|.. ReactiveView~T~
class IDisposable {
<>
}
IDisposable <|.. ReactiveView~T~
Implements: INotifyPropertyChanged (opens in a new tab), IReactiveView
Remarks¶
The view holds an initial snapshot plus ongoing changes from the source stream, applies a filter to every item and batches updates. It raises property change notifications when its contents are updated. Item order follows arrival order rather than source order.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the ReactiveView class from a notification stream and an initial snapshot. |
Properties¶
| Name | Summary |
|---|---|
| BatchResetLimit | Gets or sets the size above which one applied batch raises a single reset instead of one notification per item. |
| Items | Gets a read-only, observable collection of items of type T. |
Methods¶
| Name | Summary |
|---|---|
| ToProperty | Assigns the current collection of items to a property using the specified setter action. |
| Dispose | Releases all resources used by the current instance of the class. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanged | Occurs when a property value changes. |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)